package com.fsp.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("json")
public class JsonController1 {
    @RequestMapping("/testMap")
    public Map test(){
        HashMap<String, Object> hashMap = new HashMap<>();
        hashMap.put("name","sandy");
        hashMap.put("age",12);
        hashMap.put("sex","男");
        return hashMap;
    }
}
